package com.qf.erpb.sale.controller;

import com.qf.erpb.core.common.JsonResult;
import com.qf.erpb.core.vo.PageVO;
import com.qf.erpb.sale.entity.ShoppingVo;
import com.qf.erpb.sale.param.ShoppingParam;
import com.qf.erpb.sale.service.ShoppinginfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Shoppinginfo)表控制层
 *
 * @author makejava
 * @since 2023-12-22 14:50:01
 */
@CrossOrigin
@RestController
@RequestMapping("shoppinginfo")
@Api(tags = "销售管理接口2")
public class ShoppinginfoController {

    @Resource
    private ShoppinginfoService shoppinginfoService;


    @ApiOperation("模糊查询分页")
    @PostMapping("/selpagev")
    public JsonResult selpagev(ShoppingParam param) {
        PageVO<ShoppingVo> pageVO = shoppinginfoService.pageShopping(param);
        return JsonResult.ok(pageVO);
    }

}

